package com.lee.builder;

import com.lee.OneSender;
import com.lee.Sender;
import com.lee.TwoSender;

import java.util.ArrayList;
import java.util.List;

/**
 * 功能描述:
 *
 * @author liping(lpaidd50@gmail.com)
 * @version v1.0
 * @date 2017/3/24
 */
public class Builder {
	private List<Sender> senders = new ArrayList<Sender>();

	public void createOne(int count) {
		for (int i = 0; i < count; i++) {
			senders.add(new OneSender());
		}
	}

	public void createTwo(int count) {
		for (int i = 0; i < count; i++) {
			senders.add(new TwoSender());
		}
	}

	public List<Sender> getSenders() {
		return senders;
	}

	public void setSenders(List<Sender> senders) {
		this.senders = senders;
	}
}
